package com.qst.pojo;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
	 private static final long serialVersionUID = -7127533638267372397L;

	 private Integer id;
	 private String username;//登录账户
	 private String password;//登录密码
	 private String usertype;//账户类型，这里不用枚举，避免持久层逻辑过于复杂:  admin  fangdong  zuke
	 private Date createdate;//注册时间



	 public Date getCreatedate() {
		  return createdate;
	 }

	 public void setCreatedate(Date createdate) {
		  this.createdate = createdate;
	 }

	 public Integer getId() {
		  return id;
	 }

	 public void setId(Integer id) {
		  this.id = id;
	 }

	 public String getUsername() {
		  return username;
	 }

	 public void setUsername(String username) {
		  this.username = username == null ? null : username.trim();
	 }

	 public String getPassword() {
		  return password;
	 }

	 public void setPassword(String password) {
		  this.password = password == null ? null : password.trim();
	 }

	 public String getUsertype() {
		  return usertype;
	 }

	 public void setUsertype(String usertype) {
		  this.usertype = usertype;
	 }

	 @Override public String toString() {
		  return "User [id=" + id + ", username=" + username + ", password=" + password + ", usertype="
				  + usertype + "]";
	 }

}